import Vue from 'vue'
import Vuex from 'vuex'
const screenH = document.documentElement.clientHeight || document.body.clientHeight || window.innerHeight
const screenW = document.documentElement.clientWidth || document.body.clientWidth || window.innerWidth


Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    URL: 'http://localhost:1337/',
    screenH,
    screenW,
    homeIndex: 'home1',
    navBarIndex: 0,
    swiperIndex: 0,
    userInfo: '',

  },
  getters: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
  }
})
